//
//  M3Subscription.m
// 
//
//  Created by xm on 2023/8/31.
//

#import "M3Subscription.h"

@implementation M3Subscription

-(instancetype) initWithCaller:(id) caller code:(NSInteger ) code block:(M3SubscriptionBlock) block
{
    if(self = [super init]){
        self.caller = caller;
        self.code = code;
        self.block = block;
        if(caller){
            self.callerName = NSStringFromClass([caller class]);
        }
    }
    
    return self;
}
+(instancetype) subscriptionWithCaller:(id) caller code:(NSInteger ) code block:(M3SubscriptionBlock) block
{
    return [[self alloc] initWithCaller:caller code:code block:block];
}



@end
